class interface : public base
{
public:
	interface();
	~interface();

	int init(coeur *,IGUIEnvironment *,IXMLReader*,IXMLReader*);
	int update();
	int close();

	int setImage(ITexture*);

	int afficherInventaire(bool);

	int setImagePosition(position2d<s32>);

	int addItemInventaire(item *);

	int addInventaire(int,stringc,int,INVENTAIRE_POS);

	inventaire* getInventaire(int);

	int lpressed();
	int lreleased();

	int rpressed();
	
	bool OnEvent(const SEvent&);
private:
	int speak(localItem*);
	int getFreePlace();
	IGUIEnvironment* env;

	ITexture* curDefault;
	ITexture* curTake;
	ITexture* curLook;
	ITexture* curAction;

	stringc soundFind;

	IGUIFont* mainFont;

	IGUIImage* image;

	IGUIStaticText* txt;

	int selectedInv;
	int selectedItem;

	int pselectedInv;
	int pselectedItem;

	item* handle;

	string<inventaire*> *inv;

	u32 time;

	bool v;
};

